import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 配置moment
import moment from 'moment'
Vue.prototype.moment=moment

//mintui配置
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//配置axios
import axios from 'axios'
axios.defaults.baseURL="http://127.0.0.1:3000/"
Vue.prototype.axios = axios

//vant配置
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//页头 
import Navbar from './components/Navbar.vue'
Vue.component('my-navbar',Navbar)

// 标签页
import Tabs from './components/Tabs.vue'
 Vue.component('my-tabs',Tabs)
 
// 底部导航栏
import Tabbar from './components/Tabbar.vue'
Vue.component('my-tabbar',Tabbar)

// 分享弹窗
import Share from './components/Share.vue'
Vue.component('my-share',Share)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
